OPC Studio User's Guide and Reference
Explicit Type Conversion Operator (DAVtqResult<TValue>)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.DataAccess.Generic Namespace > DAVtqResult<TValue> Class : Explicit Type Conversion Operator
The OPC-DA typed VTQ result to be converted.
Converts OPC-DA typed VTQ result object to a corresponding typed value result object, OpcLabs.BaseLib.OperationModel.Generic.ValueResult<T>.
Syntax
'Declaration
 
<CanBeNullAttribute()>
<ContractAnnotationAttribute("null => null; notnull => notnull")>
Public Operator Narrowing CType( _
   ByVal vtqResult As DAVtqResult(Of TValue) _
) As ValueResult(Of TValue)
'Usage
 
[CanBeNull()]
[ContractAnnotation("null => null; notnull => notnull")]
public ValueResult<TValue> operator explicit( 
   DAVtqResult<TValue> vtqResult
)
[CanBeNull()]
[ContractAnnotation("null => null; notnull => notnull")]
public:
ValueResult<TValue^>^ operator explicit( 
   DAVtqResult<TValue^>^ vtqResult
)

Parameters

vtqResult
The OPC-DA typed VTQ result to be converted.

Return Value

The typed value result object that corresponds to the typed VTQ result. null if the typed VTQ result passed in was null.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also